package com.example.s06.entity;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component //注册bean
public class Supplier implements Role{
    private String scode;
    private String  spassword;
    private  String sname;

    @Override
    public String getRole() {
        return "商家";
    }

    @Override
    public String getcode() {
        return scode;
    }

    @Override
    public String getPassword() {
        return spassword;
    }

    @Override
    public String getName() {
        return sname;
    }
}
